package ls.cloud.web;

import ls.cloud.register.RpcRegisterManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2016/12/29 0029.
 */
@RestController
@RequestMapping(value = "/zk", produces = ("application/json; charset=UTF-8"))
public class ServiceController {
    @Autowired
    RpcRegisterManager rpcMsger;

    @RequestMapping(value = ("/services"), method = RequestMethod.GET)
    public Object services(){
        return rpcMsger.services();
    }
}
